package com.spring.cloud.practice.demo.consulprovider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class BookController {

    @Value("${abc.def}")
    String abc;

    @GetMapping("getBook")
    public String getBook (String name) {
        return "This book's name is " + name + ", port = " + abc;
    }
}
